# Author : wyq

import time
# import  traceback
#
# traceback.print_exc()
def timmer(func):
    def warpper(*args,**kwargs):
        start_time = time.time()
        func()
        stop_time = time.time()
        print("the func run time is %s " %(start_time-stop_time))
    return warpper()

@timmer
def test1():
    time.sleep(3)
    print('in the test1')

test1()
